import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

Vue.filter('format', (tt) => {
  var time = new Date(tt)
  var yy = time.getFullYear()
  var mm = time.getMonth() + 1
  var dd = time.getDate()
  var h = time.getHours()
  var m = time.getMinutes()
  var s = time.getSeconds()
  return `${yy}-${mm}-${dd} ${h}:${m}:${s}`
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
